package com.lyz.anli;

import com.sun.deploy.trace.Trace;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName De10Logback
 * @Description TODO
 * @Author 2214361854
 * @Date 2022/2/27 10:23
 * @Version 1.0
 */
public class De10Logback {
    public static final Logger LOGGER = LoggerFactory.getLogger("De10Logback.class");
    public static void main(String[] args) {
        System.out.println("执行代码");
        //获取classpath路径
        String s = Thread.currentThread().getContextClassLoader().getResource("").getPath();
        System.out.println("classpath : " + s );
        //日志级别
        LOGGER.trace("路径跟踪");
        LOGGER.debug("调试");
        LOGGER.info("关键信息");
        LOGGER.warn("警告");
        LOGGER.error("错误");
        System.out.println("代码结束");
     }
}
